﻿using System.Web;
using System.Web.Optimization;

namespace CloudPms.Web.Views
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1-7-1.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-1-8-20.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive-ajax.min.js",
                        "~/Scripts/jquery.validate.unobtrusive.min.js",
                        "~/Scripts/jquery.validate.min.js"));//*通配符只能在末尾使用 ~/Scripts/jquery.validate*

            // 使用 Modernizr 的开发版本进行开发和了解信息。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/css").Include(
                        "~/Content/themes/minified/jquery.ui.core.min.css",
                        "~/Content/themes/minified/jquery.ui.resizable.min.css",
                        "~/Content/themes/minified/jquery.ui.selectable.min.css",
                        "~/Content/themes/minified/jquery.ui.accordion.min.css",
                        "~/Content/themes/minified/jquery.ui.autocomplete.min.css",
                        "~/Content/themes/minified/jquery.ui.button.min.css",
                        "~/Content/themes/minified/jquery.ui.dialog.min.css",
                        "~/Content/themes/minified/jquery.ui.slider.min.css",
                        "~/Content/themes/minified/jquery.ui.tabs.min.css",
                        "~/Content/themes/minified/jquery.ui.datepicker.min.css",
                        "~/Content/themes/minified/jquery.ui.progressbar.min.css",
                        "~/Content/themes/minified/jquery.ui.theme.min.css"));
        }
    }
}